Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use libusb auto-detach feature #84

Merged
merged 1 commit into from
Nov 27, 2022
Merged

use libusb auto-detach feature #84

merged 1 commit into from
Nov 27, 2022

Conversation

barbibulle
Copy link
Collaborator

The usb transport was unconditionally detaching the kernel driver for an interface when claiming it (when supported), but wasn't re-attaching it when releasing the interface. As a result, a USB controller would stop being visible to the kernel after using this transport on Linux.
This PR uses libusb's auto-detach feature, which will automatically detach, the re-attach, the kernel driver when the interface is claimed then released.

@barbibulle barbibulle merged commit a739fc7 into main Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants